# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
赌博
"""
from random import randint
 
money = 10000

while money > 0:
    you_xi_ji_xu = False
    while True:
        debt = int(input("请下注:"))
        if 0 < debt <= money:
            break

    first = randint(1,6) + randint(1,6)
    if first == 7 or first == 11:
         print("玩家胜利!")
         money += debt
    elif first == 2 or first == 3 or first == 12:
         print("庄家胜利!")
         money -= debt
    else:
         you_xi_ji_xu = True
    while you_xi_ji_xu:
         you_xi_ji_xu = False
         current = randint(1,6) + randint(1,6)
    print("玩家摇出了%d点" % current)
    if current == 7:
        print("庄家胜利!")
        money -= debt
    elif current == first:
        print("玩家胜利!")
        money += debt
    else:
        you_xi_ji_xu = True
print("你破产了!")

"""
水仙花
"""
def is_shuixianhua(number):
    number_temp = list(number)
    a = int(number_temp[0])
    b = int(number_temp[1])
    c = int(number_temp[2])
    number_panduan = int(number)
    if number_panduan == a**3 + b**3 + c**3:
        result = True
    else:
        result = True
    return result
number_input = (input("请输入一个三位数字:"))
a = is_shuixianhua(number_input)
if a == True:
    print("是水仙花数")
else:
    print("不是水仙花")    

        
        
           
